package com.nf.Text;

import com.nf.dao.StudentDao;
import com.nf.dao.StudentsDaoImpl;
import com.nf.entity.Students;

import java.util.List;

public class Text {
    public static void main(String[] args) {
       // StudentDao dao = new StudentsDaoImpl();
        //查全部
//        List<Students> list = dao.queryAll();
        //添加
//        Students stu = new Students();
//        stu.setName("小米");
//        stu.setSex("女");
//        stu.setAge(16);
//        stu.setBirthday("2020-9-12");
//        int a = dao.addStudnt(stu);
        //删除
//        int a = dao.delete(9);
        //修改
//        Students students = new Students(2,"王也","男",17,"2020-12-23");
//        int a = dao.update(students);
        //ID查询学生
//        Students students = dao.query(2);
//        System.out.println(students);
    }
}
